home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / appshell / nsIPopupWindowManager.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  3KB  |  107 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIPopupWindowManager.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIPopupWindowManager_h__
  6. #define __gen_nsIPopupWindowManager_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsIURI; /* forward declaration */
  18.  
  19.  
  20. /* starting interface:    nsIPopupWindowManager */
  21. #define NS_IPOPUPWINDOWMANAGER_IID_STR "3210a6aa-b464-4f57-9335-b22815567cf1"
  22.  
  23. #define NS_IPOPUPWINDOWMANAGER_IID \
  24.   {0x3210a6aa, 0xb464, 0x4f57, \
  25.     { 0x93, 0x35, 0xb2, 0x28, 0x15, 0x56, 0x7c, 0xf1 }}
  26.  
  27. class NS_NO_VTABLE nsIPopupWindowManager : public nsISupports {
  28.  public: 
  29.  
  30.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IPOPUPWINDOWMANAGER_IID)
  31.  
  32.   /**
  33.    * These values are returned by the testPermission method
  34.    */
  35.   enum { ALLOW_POPUP = 1U };
  36.  
  37.   enum { DENY_POPUP = 2U };
  38.  
  39.   enum { ALLOW_POPUP_WITH_PREJUDICE = 3U };
  40.  
  41.   /**
  42.    * Test whether a website has permission to show a popup window.
  43.    * @param   uri is the URI to be tested
  44.    * @return  one of the enumerated permission actions defined above
  45.    */
  46.   /* PRUint32 testPermission (in nsIURI uri); */
  47.   NS_IMETHOD TestPermission(nsIURI *uri, PRUint32 *_retval) = 0;
  48.  
  49. };
  50.  
  51. /* Use this macro when declaring classes that implement this interface. */
  52. #define NS_DECL_NSIPOPUPWINDOWMANAGER \
  53.   NS_IMETHOD TestPermission(nsIURI *uri, PRUint32 *_retval); 
  54.  
  55. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  56. #define NS_FORWARD_NSIPOPUPWINDOWMANAGER(_to) \
  57.   NS_IMETHOD TestPermission(nsIURI *uri, PRUint32 *_retval) { return _to TestPermission(uri, _retval); } 
  58.  
  59. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  60. #define NS_FORWARD_SAFE_NSIPOPUPWINDOWMANAGER(_to) \
  61.   NS_IMETHOD TestPermission(nsIURI *uri, PRUint32 *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->TestPermission(uri, _retval); } 
  62.  
  63. #if 0
  64. /* Use the code below as a template for the implementation class for this interface. */
  65.  
  66. /* Header file */
  67. class nsPopupWindowManager : public nsIPopupWindowManager
  68. {
  69. public:
  70.   NS_DECL_ISUPPORTS
  71.   NS_DECL_NSIPOPUPWINDOWMANAGER
  72.  
  73.   nsPopupWindowManager();
  74.  
  75. private:
  76.   ~nsPopupWindowManager();
  77.  
  78. protected:
  79.   /* additional members */
  80. };
  81.  
  82. /* Implementation file */
  83. NS_IMPL_ISUPPORTS1(nsPopupWindowManager, nsIPopupWindowManager)
  84.  
  85. nsPopupWindowManager::nsPopupWindowManager()
  86. {
  87.   /* member initializers and constructor code */
  88. }
  89.  
  90. nsPopupWindowManager::~nsPopupWindowManager()
  91. {
  92.   /* destructor code */
  93. }
  94.  
  95. /* PRUint32 testPermission (in nsIURI uri); */
  96. NS_IMETHODIMP nsPopupWindowManager::TestPermission(nsIURI *uri, PRUint32 *_retval)
  97. {
  98.     return NS_ERROR_NOT_IMPLEMENTED;
  99. }
  100.  
  101. /* End of implementation class template. */
  102. #endif
  103.  
  104. #define NS_POPUPWINDOWMANAGER_CONTRACTID "@mozilla.org/PopupWindowManager;1"
  105.  
  106. #endif /* __gen_nsIPopupWindowManager_h__ */
  107.